package com.example.lhspringboot07sjp.service.impl;

import com.example.lhspringboot07sjp.service.UserService;
import org.springframework.stereotype.Service;
//使用@Service注解表示将此对象交给springIOC容器进行管理
@Service(value = "userService")
public class UserServiceImpl implements UserService {
    @Override
    public void sayHello(String name) {
        System.out.println("执行了业务方法sayHello:" + name);
    }
}
